% Author: Vasyl Mykhalchuk
% Date: 26/04/2012
%
% Returns vertex adjacency matrix (in CCW order)
function [ vert_adj_CCW ] = get_vert_adj_CCW( topology, vert_num, title)
kMaxNumberOfAdjVertices = get_num_adj_vertices();
vert_adj_CCW = zeros(vert_num, kMaxNumberOfAdjVertices);

% Iterate over all vertices, create CCW vertex list for each
for vert_id = 1 : vert_num
    vert_adj_CCW(vert_id, :) = adj4vert(topology, vert_id);
end % FOR

vert_adj_ccw = vert_adj_CCW;
save([title, '_vert_adj_ccw.mat'], 'vert_adj_ccw', '-v7.3');

end % FUNCTION get_vert_adj_CCW





